
"ui";

m1()
function m1(){
ui.layout(
<frame>
<vertical>
<button id="ok0" text="获取"/>



</vertical>
</frame>
)

ui.ok0.click(function(){

m2( )
})



}


function m2(){

const h1 = http.get("www.baidu.com/su?wd=111")
const text1 = h1.body.string()


ui.layout(
<frame>
<vertical>
<text id = "ok1" text =""  />


</vertical>
</frame>
)

ui.ok1.setText(text1)


}